<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name="loginPage"/></title>
<style type="text/css">
</style>
<script type="text/javascript">
	function regist(){
		targetForm=document.forms[0];
		targetForm.action="registAction";
	}
	function login(){
		targetForm=document.forms[0];
		targetForm.action="loginAction";
	}
</script>
</head>
<body>
<form action="loginAction" method="post">
	<table align="center">
	<caption><h3>用户登录</h3></caption>
		<tr>
			<td>用户名：<input type="text" name="username"/></td>
		</tr>
		<tr align="center">
			<td><input type="submit" value="登录"/><input type="reset" value="重填" /></td>
		</tr>
	</table>
</form>
<hr/>
<s:form action="loginAction">
	<s:textfield name="username" key="user"/><br>
	<s:textfield name="password" key="pass"/><br>
	<%-- <s:submit key="login"/> --%>
	<!-- <s:submit key="regist" onclick="regist();" /> -->
	<input type="submit" value="注册" onclick="regist();"/>
	<input type="submit" value="登录" onclick="login();"/>
</s:form>
</body>
</html>